package com.csun.cmny.provider.model.dto;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class PaymentDerate implements Serializable {

    private static final long serialVersionUID = -5040983067400055392L;

    private Integer derateId;

    private Integer oldmanId;

    private String ietypeId;

    private String ietypeName;

    private BigDecimal derateBefor;

    private BigDecimal derateFee;

    private Integer homeId;

    private Boolean valid;

    private Date createTime;

    private Integer creator;

    public Integer getDerateId() {
        return derateId;
    }

    public void setDerateId(Integer derateId) {
        this.derateId = derateId;
    }

    public Integer getOldmanId() {
        return oldmanId;
    }

    public void setOldmanId(Integer oldmanId) {
        this.oldmanId = oldmanId;
    }

    public String getIetypeId() {
        return ietypeId;
    }

    public void setIetypeId(String ietypeId) {
        this.ietypeId = ietypeId;
    }

    public String getIetypeName() {
        return ietypeName;
    }

    public void setIetypeName(String ietypeName) {
        this.ietypeName = ietypeName;
    }

    public BigDecimal getDerateBefor() {
        return derateBefor;
    }

    public void setDerateBefor(BigDecimal derateBefor) {
        this.derateBefor = derateBefor;
    }

    public BigDecimal getDerateFee() {
        return derateFee;
    }

    public void setDerateFee(BigDecimal derateFee) {
        this.derateFee = derateFee;
    }

    public Integer getHomeId() {
        return homeId;
    }

    public void setHomeId(Integer homeId) {
        this.homeId = homeId;
    }

    public Boolean getValid() {
        return valid;
    }

    public void setValid(Boolean valid) {
        this.valid = valid;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getCreator() {
        return creator;
    }

    public void setCreator(Integer creator) {
        this.creator = creator;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        PaymentDerate other = (PaymentDerate) that;
        return (this.getDerateId() == null ? other.getDerateId() == null : this.getDerateId().equals(other.getDerateId()))
            && (this.getIetypeId() == null ? other.getIetypeId() == null : this.getIetypeId().equals(other.getIetypeId()))
            && (this.getIetypeName() == null ? other.getIetypeName() == null : this.getIetypeName().equals(other.getIetypeName()))
            && (this.getDerateBefor() == null ? other.getDerateBefor() == null : this.getDerateBefor().equals(other.getDerateBefor()))
            && (this.getDerateFee() == null ? other.getDerateFee() == null : this.getDerateFee().equals(other.getDerateFee()))
            && (this.getHomeId() == null ? other.getHomeId() == null : this.getHomeId().equals(other.getHomeId()))
            && (this.getValid() == null ? other.getValid() == null : this.getValid().equals(other.getValid()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getCreator() == null ? other.getCreator() == null : this.getCreator().equals(other.getCreator()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getDerateId() == null) ? 0 : getDerateId().hashCode());
        result = prime * result + ((getIetypeId() == null) ? 0 : getIetypeId().hashCode());
        result = prime * result + ((getIetypeName() == null) ? 0 : getIetypeName().hashCode());
        result = prime * result + ((getDerateBefor() == null) ? 0 : getDerateBefor().hashCode());
        result = prime * result + ((getDerateFee() == null) ? 0 : getDerateFee().hashCode());
        result = prime * result + ((getHomeId() == null) ? 0 : getHomeId().hashCode());
        result = prime * result + ((getValid() == null) ? 0 : getValid().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getCreator() == null) ? 0 : getCreator().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", derateId=").append(derateId);
        sb.append(", ietypeId=").append(ietypeId);
        sb.append(", ietypeName=").append(ietypeName);
        sb.append(", derateBefor=").append(derateBefor);
        sb.append(", derateFee=").append(derateFee);
        sb.append(", homeId=").append(homeId);
        sb.append(", valid=").append(valid);
        sb.append(", createTime=").append(createTime);
        sb.append(", creator=").append(creator);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}